/* Login.less */
.scifi-login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0c0c2e 0%, #1a1a3e 50%, #2d2d5e 100%);
  overflow-y: auto;
  font-family: 'Arial', sans-serif;
}

/* 动态背景元素 */
.scifi-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #00ffff, #0080ff);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #ff00ff, #8000ff);
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #ffff00, #ff8000);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 登录框样式 */
.scifi-login-box {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 420px;
  margin: 10% auto 0;
  box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.2),
          0 0 20px rgba(0, 255, 255, 0.1);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(0, 255, 255, 0.1); }
  to { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.3); }
}

/* 头部区域 */
.scifi-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container {
  margin-bottom: 20px;
}

.hologram-logo {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.logo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #00ffff, #0080ff);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid #00ffff;
  border-radius: 50%;
  animation: rotate 4s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scifi-title {
  color: #00ffff;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  letter-spacing: 2px;
}

.scifi-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

/* 输入框样式 */
.scifi-login-form {
  .input-group {
    position: relative;
    margin-bottom: 25px;
  }

  .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    z-index: 2;
    font-size: 18px;
  }
}

.scifi-input {
  :deep(.el-input__inner) {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    height: 50px;
    padding-left: 45px;
    font-size: 16px;
    transition: all 0.3s ease;

    &::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }

    &:focus {
      border-color: #00ffff;
      box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.08);
    }

    &:hover {
      border-color: rgba(255, 255, 255, 0.4);
    }
  }
}

/* 按钮样式 */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.scifi-btn {
  position: relative;
  flex: 1;
  height: 50px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  transition: all 0.3s ease;
  background: transparent;

  .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
  }

  &:hover {
    transform: translateY(-2px);

    .btn-glow {
      left: 100%;
    }
  }

  &:active {
    transform: translateY(0);
  }
}

.login-btn {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: #000;

  &:hover {
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
  }
}

.register-btn {
  background: linear-gradient(135deg, #ff00ff, #8000ff);
  color: #fff;

  &:hover {
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
  }
}

/* 注册页面样式 */
.scifi-register-box {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 800px;
  margin: 5% auto;
  box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.2),
          0 0 20px rgba(255, 0, 255, 0.1);
  animation: glowPurple 2s ease-in-out infinite alternate;
}

@keyframes glowPurple {
  from { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 0, 255, 0.1); }
  to { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 0, 255, 0.3); }
}

.register-header {
  text-align: center;
  margin-bottom: 30px;
}

.register-title {
  color: #ff00ff;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.register-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.scifi-register-form {
  :deep(.el-form-item__label) {
    color: #00ffff;
    font-weight: 500;
  }

  :deep(.el-radio) {
    color: rgba(255, 255, 255, 0.8);
  }

  :deep(.el-radio__input.is-checked .el-radio__inner) {
    background-color: #ff00ff;
    border-color: #ff00ff;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.register-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.confirm-register-btn {
  background: linear-gradient(135deg, #00ff00, #008000);
  color: #000;

  &:hover {
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
  }
}

.back-login-btn {
  background: linear-gradient(135deg, #ffff00, #ff8000);
  color: #000;

  &:hover {
    box-shadow: 0 5px 20px rgba(255, 255, 0, 0.4);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .scifi-login-box {
    width: 90%;
    margin: 20% auto;
    padding: 30px 20px;
  }

  .scifi-register-box {
    width: 95%;
    padding: 30px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }
}